package framework.event;

import framework.api.KieBaseConfiguration.KieBaseOption;

public enum EqualityBehaviorOption implements KieBaseOption {
    IDENTITY,
    EQUALITY;

    public static EqualityBehaviorOption determineEqualityBehavior(String option) {
        if ( IDENTITY.name().equalsIgnoreCase(option) ) {
            return IDENTITY;
        } else if ( EQUALITY.name().equalsIgnoreCase( option ) ) {
            return EQUALITY;
        }
        throw new IllegalArgumentException( "Illegal enum value '" + option + "' for EqualityBehaviorOption" );
    }
}
